using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Yozeev.Models
{
    /// <summary>
    /// 验票结果
    /// { status = 0，无效，1进方向，3出方向, msg = "验票信息", count = 0 验票成功数量，一般为1,audio="crp.wav" 音频文件名, show_msg="&lt;Font&nbsp;color=#00F&gt;掉杆成功&lt;/Font&gt;" url字符串 显示屏 }
    /// </summary>
    public class CheckResult
    {
        public int status { get; set; }
        public string msg { get; set; }
        public int count { get; set; }
        public string audio { get; set; }
        public string show_msg { get; set; }
    }
    /// <summary>
    /// LED显示信息，票据信息
    /// </summary>
    public class ShowResult
    {
        public ShowResult()
        {
            IsCheck = false;
            ItemName = "无效票";
            ResultMsg = "";
            ItemNo = "";
            CheckedQuantity = "";
            CheckingQuantity = "";
            StartDateTime = "";
            EndDateTime = "";
        }
        public bool IsCheck { get; set; }
        public string ItemName { get; set; }
        public string ResultMsg { get; set; }
        public string ItemNo { get; set; }
        public string CheckingQuantity { get; set; }
        public string CheckedQuantity { get; set; }
        public string StartDateTime { get; set; }
        public string EndDateTime { get; set; }
    }
    /// <summary>
    /// 验票错误提示
    /// </summary>
    public class CheckException
    {
        public static string DeviceNull = "未找到该设备";
        public static string DeviceIsEnable = "该设备未启用";
        public static string TicketDetailNull = "未找到该票信息";
        public static string TicketDetailRefund = "该票已经退票";
        public static string TicketDetailUsed = "该票已经使用";
        public static string TicketDetailNumberCheck = "该票已超过使用次数";
        public static string TicketDetailStartDateTime = "该票还未到使用时间";
        public static string TicketDetailEndDateTime = "该票已过期";
        public static string TicketDetailNullCard = "无效卡";
        public static string TicketDetailNullSchedule = "未找到检票的航班信息";

    }

    public class CheckInfo
    {
        /// <summary>
        /// 设备代码
        /// </summary>
        public string gateNumber { get; set; }
        /// <summary>
        /// 访问信息
        /// </summary>
        public string jqmpass { get; set; }
        /// <summary>
        /// 串口
        /// </summary>
        public string rdindex { get; set; }
        /// <summary>
        /// 验票结果
        /// </summary>
        public CheckResult checkResult { get; set; }
        /// <summary>
        ///  LED显示信息，票据信息
        /// </summary>
        public ShowResult showResult { get; set; }
    }
}